package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 课程信息对象 Course
 *
 * @author ruoyi
 * @date 2022-04-27
 */
public class Course extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer cid;

    /**
     * 课程编号
     */
    @Excel(name = "课程编号")
    private String cno;

    /**
     * 课程名称
     */
    @Excel(name = "课程名称")
    private String cname;

    /**
     * 教师编号
     */
    @Excel(name = "教师编号")
    private String tno;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("cid", getCid())
                .append("cno", getCno())
                .append("cname", getCname())
                .append("tno", getTno())
                .toString();
    }
}
